package SmartMeeting.bridges;

import SmartMeeting.observers.*;
import SmartMeeting.observers.UIObserver;

public class MobilePlatform implements PlatFormAPI {
    public MobilePlatform() {
        meetingStatusManager.registerObserver(observer);
    }

    @Override
    public void videoOn() {
        System.out.println("Mobile平台视频已开启");
        observer.update("Mobile平台视频已开启");
    }

    @Override
    public void videoOff() {
        System.out.println("Mobile平台视频已关闭");
        observer.update("Mobile平台视频已关闭");
    }

    @Override
    public void audioOn() {
        System.out.println("Mobile平台音频已开启");
        observer.update("Mobile平台音频已开启");
    }

    @Override
    public void audioOff() {
        System.out.println("Mobile平台音频已关闭");
        observer.update("Mobile平台音频已关闭");
    }

    @Override
    public void shareScreenOn() {
        System.out.println("Mobile平台屏幕共享已开启");
        observer.update("Mobile平台屏幕共享已开启");
    }

    @Override
    public void shareScreenOff() {
        System.out.println("Mobile平台屏幕共享已关闭");
        observer.update("Mobile平台屏幕共享已关闭");
    }
}
